﻿using System;
using System.Data;
using System.Configuration;

using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections;

namespace TA.Turbo.Controls
{
	/// <summary>
	/// Summary description for StyleResourceIncude
	/// </summary>
	public class StyleResourceInclude : BaseResourceInclude, IStyleInclude
	{
		#region PUBLIC
		#region INIT
		/// <summary>
		/// Ctor.
		/// </summary>
		/// <param name="resource"></param>
		/// <param name="type"></param>
		public StyleResourceInclude(string resource, Type type)
		{
			this.Type = type;
			this.Resource = resource;
		}
		#endregion
		#region PROPS
		public override IncludeType IncludeType
		{
			get { return IncludeType.Style; }
		}
		#endregion
		#region METHODS
		public override string GetClientUrl()
		{
			return TPage.DoResolveUrl(string.Format("~/TurboResource.axd?k={0}&filename={1}",
				CombinedContent.Get(this.Content, "text/css").Key,
				this.FileName));
		}
		#endregion
		#endregion
		#region INTERNAL
		#region VARS
		#endregion
		#region METHODS
		#endregion
		#endregion
	}
}